<%@page import="cn.com.entity.Doctor"%>
<%@page import="cn.com.dao.DoctorDao"%>
<%@page import="cn.com.entity.Departments"%>
<%@page import="cn.com.dao.DepartmentsDao"%>
<%@page import="cn.com.entity.Registerform"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">		
a:visited {
	text-decoration: none;
	color: #03C;
}
a:hover {
	text-decoration: none;
	color: #69C;
}
a:active {
	text-decoration: none;
}
a:link {
	
	text-decoration: none;
}
body{
	color: #03C;
	font-size: 20px;
}
</style>
</head>
<body>
<%
if(session.getAttribute("consumerregisterform")!=null){
	Registerform rf=(Registerform)session.getAttribute("consumerregisterform");
	int departid=rf.getDepartmentsid();
	int doctorid=rf.getDoctorid();
	DepartmentsDao dd=new DepartmentsDao();
	Departments d=dd.selectOneDepartments(departid);
	DoctorDao docd=new DoctorDao();
	Doctor doc=docd.selectOneDoctorByid(doctorid);
	
%>
<h2 align="center">我的挂号单</h2>
<h4 align="center">${registerformmsg }</h4>
<table border="1" width="60%" align="center">
	<tr>
		<td>挂号科室</td>
		<td><%=d.getDepartmentsname() %></td>
	</tr>
	
	<tr>
		<td>挂号医生</td>
		<td><%=doc.getDoctorrealname() %></td>
	</tr>
	
	<tr>
		<td>挂号时间</td>
		<td><%=rf.getRegistertime() %></td>
	</tr>
	
	<tr>
		<td colspan="2" align="center">存储为word</td>
	</tr>
</table>
<%} %>
</body>
</html>